package cn.ywang.pattern.battercake.v1;

/**
 * 香肠煎饼，继承煎饼类
 *
 * @author BeatificWang
 * @date 2019/3/20 6:58
 */
public class SausageBattercake extends Battercake {
	@Override
	public String getName() {
		return super.getName() + ",加一根香肠";
	}

	@Override
	public int getPrice() {
		return super.getPrice() + 2;
	}
}
